package com.qianfeng.zw.meilishuo.adapter.itemview;

import android.content.Context;
import android.widget.ImageView;

import com.jayqqaa12.abase.core.ItemView;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.qianfeng.zw.meilishuo.R;
import com.qianfeng.zw.meilishuo.bean.FashRecom;
import com.qianfeng.zw.meilishuo.utils.ImageLoaderHelper;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

/**
 *
 * @作 用:
 * @创 建 人: zhangwei
 * @日 期: 15/4/1 10:06
 * @修 改 人:
 * @日 期:
 *
 */
@EViewGroup(R.layout.itemview_fash_recomm_layout)
public class FashRemmViewHolder extends ItemView<FashRecom> {
    @ViewById(R.id.itemview_fash_recomm_img)
    ImageView img;
    private DisplayImageOptions options;

    public FashRemmViewHolder(Context context) {
        super(context);
        options = ImageLoaderHelper.getInstance().getDefaultDisplayImageOptions();
    }

    @Override
    public void bind(final FashRecom remm) {
        ImageLoader.getInstance().displayImage(remm.getImage_url(), img, options);
    }



}

